<%-- 
    Document   : registerNewUser
    Created on : Nov 20, 2013, 6:46:01 AM
    Author     : vasilenko
--%>
<%@taglib prefix="sf" uri="http://www.springframework.org/tags/form" %>
<%@taglib prefix="s" uri="http://www.springframework.org/tags" %>
<style type="text/css">
#registerFormContent {
    padding: 10px;
    width: 500px
}
#registerFormContent div {
    margin: 15px 0px;
}
#registerFormContent div label {
    display: block;
    width: 120px;
    float: left;
    font-size: 18px;
    color: #333;
}
#registerFormContent input[type=text],input[type=password] {
    width: 300px;
    font-size: 14px;
    font-family: calibry;
    padding: 5px;
    border: 1px solid #525252;
    border-radius: 3px;
}
#registerFormContent input[type=submit] {
    width: 90px;
    border: 1px solid #015473;
    height: 30px;
    border-radius: 8px;
    background-color: #0FB5F2;
    cursor: pointer;
}

#registerFormContent .send_button{
    text-align: center;
    margin-top: 35px;
}

#registerFormContent #name{
    width: 200px
}

#registerFormContent #password{
    width: 200px
}

#mainField{
    border: 1px solid #999999;
    border-radius: 4px;
    padding: 10px;
}

#additionalField{
    margin-top: 20px;
    padding: 10px;
}

#registerFormContent input[type=submit]:hover{
    border: 2px solid #FF8933;
}

#registerFormContent .errorMessage{
    color: #FF5E33;
    font-weight: bold;
}

</style>
<div id="registerFormContent">
    <sf:form method="POST" modelAttribute="userModel" action="./registerUser">
        <div id="mainField">
            <div>
                <label for="login" >Login:</label>
                <sf:input path="name" name="login"/>
                <sf:errors path="name" cssClass="errorMessage" />
            </div>
            <div>
                <label for="password" >Password:</label>
                <sf:password path="password" name="password"/>
                <sf:errors path="password" cssClass="errorMessage" />
            </div>
            <div>
                <label for="email" >Email:</label>
                <sf:input path="email" name="email"/>
                <sf:errors path="email" cssClass="errorMessage" />
            </div>
        </div>
        <div id="additionalField">
            <div>
                <label for="firstName" >First Name:</label>
                <sf:input path="firstName"/>
            </div>
            <div>
                <label for="lastName" >Last Name:</label>
                <sf:input path="lastName"/>
            </div>
            <div>
                <label for="organisation">Organisation:</label>
                <sf:input path="organisation"/>
            </div>
            <div>
                <label for="logo">Logo:</label>
                <input type="file" name="logo" />
            </div>
        </div>
            <div class="send_button"><input type="submit" value="Register"></div>
    </sf:form>
</div>
    